Build a wiki using docker containers which will be hosted locally. We are using two containers - one for the database (MariaDB) and another for WikiMedia software. Prerequisites 1. Docker 2. The file used in the docker-compose command is here - https://shorturl.at/iMAIw https://github.com/manojjawalkar/Personal-Wiki/blob/main/stack.yml If you want to run the docker-compose command in detach mode, use the below command - docker-compose -f stack.yml up -d Steps: 1. Run the docker-compose command - This will bring the MediaWiki and MariaDB containers up 2. Setup the wiki and download the LocalSettings.php file 3. Put the LocalSettings.php file in the directory where you have placed the stack.yml file. 4. Uncomment the "- ./LocalSettings.php:/var/www/html/LocalSettings.php" line in stack.yml 5. Re-run the docker-compose command. Reference: https://hub.docker.com/_/mediawiki Password used for wiki user 1. admin:admin@1234 ---------------------------------------------------------------------------------------------------------- stack.yaml ---------------------------------------------------------------------------------------------------------- version: '3' services: mediawiki: image: mediawiki restart: always ports: - 8080:80 links: - database volumes: - images:/var/www/html/images # After initial setup, download LocalSettings.php to the same directory as # this yaml and uncomment the following line and use compose to restart # the mediawiki service #- ./LocalSettings.php:/var/www/html/LocalSettings.php # This key also defines the name of the database host used during setup instead of the default "localhost" database: image: mariadb restart: always environment: # @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php MYSQL_DATABASE: my_wiki MYSQL_USER: wikiuser MYSQL_PASSWORD: example MYSQL_RANDOM_ROOT_PASSWORD: 'yes' volumes: - db:/var/lib/mysql volumes: images: db: ----------------------------------------------------------------------------------------------------------